package cn.icare.cms;

import cn.icare.cms.dao.po.Unit;
import cn.icare.cms.model.ro.AddAreaRO;
import cn.icare.cms.model.ro.AddUnitRO;
import cn.icare.cms.model.ro.EditAreaRO;
import cn.icare.cms.model.ro.EditUnitRO;
import cn.icare.cms.model.vo.rest.MsgDatasVO;

import java.util.List;

public interface UnitService {
    Long createOne(AddUnitRO ro);

    boolean updateOne(EditUnitRO ro);

    boolean deleteOne(Long id);

    boolean deleteBatch(List<Long> ids);

    Unit getOne(Long id);

    MsgDatasVO getList(String name, Integer pageNum, Integer pageSize);
    MsgDatasVO getAllList(String name);

}
